﻿using System.Reflection;

namespace SBlogCore.Common.DispatchProxyIn
{
    /// <summary>
    /// 全局代理类
    /// </summary>
    [SkipScan]
    public abstract class GlobalDispatchProxy : DispatchProxy
    {
        /// <summary>
        /// 服务注册
        /// </summary>
        /// <param name="serviceProvider"></param>
        public void Register(IServiceProvider serviceProvider)
        {
            this.ServiceProvider = serviceProvider;
        }

        protected IServiceProvider? ServiceProvider { get; set; }
    }
}
